package com.jnu.hc.jnuhcusercms.controller;

import com.jnu.hc.jnuhcusercms.domain.Setmeal;
import com.jnu.hc.jnuhcusercms.domain.Users;
import com.jnu.hc.jnuhcusercms.dto.ResponseObject;
import com.jnu.hc.jnuhcusercms.service.SetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SetmealController {
    @Autowired
    SetmealService setmealService;
    @RequestMapping("/setmealList")
    public ResponseObject setmealList(@RequestBody Users users){
        return setmealService.setmealList(users.getSex());
    }
}
